package com.automapper.criterion;

import java.util.List;
import java.util.Map;

public class PageExpression implements Criterion {
	
	private int offset;
	private int rows;
	
	@Override
	public String toSqlString() {
		String value = " limit %d, %d";
		return String.format(value, offset, rows);
	}
	
	@Override
	public String getParameterAliases() {
		return null;
	}

	@Override
	public Object getValue() {
		return null;
	}

	public void setOffset(int offset) {
		this.offset = offset;
	}

	public void setRows(int rows) {
		this.rows = rows;
	}

	@Override
	public Map<String, Object> getValues() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<String> getAliase() {
		// TODO Auto-generated method stub
		return null;
	}
}
